<template>
    <div>
        <!-- table -->
        <el-table :data="results"
                  row-key="id"
                  default-expand-all
                  stripe>
            <el-table-column v-for="h in colNames" :key="h" :prop="h" :label="h"></el-table-column>
        </el-table>
    </div>
</template>

<script>
    import {mapGetters} from 'vuex'

    export default {
        name: "ResultTable",
        data() {
            return {}
        },
        computed: {
            ...mapGetters(['colNames', 'results']),
        },
        methods: {}
    }
</script>
<style scoped>
    .el-input.long {
        width: 375px;
    }
</style>